package com.wanxi.inter;

import com.wanxi.inter.Circle;

public class CompareTest {
    public static void main(String[] args) {
        Circle circle1 = new Circle(2.5);
        Circle circle2 = new Circle(3.5);

        CompareTest compareTest =new CompareTest();

        try {
            int i =  circle1.compareTo(circle2);


            if(i>0){
                System.out.println("c1大于c2");
            }else if(i<0){
                System.out.println("C1小于c2");
            }
        }catch (Exception e){
            e.printStackTrace();
        }



    }
}
